package com.bdqn.ch02.util;

import com.bdqn.ch02.vo.Dept;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


//将bean放到spring容器中管理
@Configuration
public class DeptTest {

    //Dept show = new Dept();  生成bean
    @Bean
    public Dept show() {
        System.out.println("show................");
        return new Dept();
    }

    @Bean
    public Dept show1(){
        return null;
    }
}
